# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=guile-zlib
pkgver=0.1.0
pkgrel=0
pkgdesc="Guile bindings for zlib"
url="https://notabug.org/guile-zlib/guile-zlib"
arch="all"
license="GPL-3.0-or-later"
depends="guile zlib-dev"
makedepends="autoconf automake guile-dev"
options="!strip" # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907061
source="$pkgname-$pkgver.tar.gz::https://notabug.org/guile-zlib/guile-zlib/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname"

prepare() {
	default_prepare
	autoreconf -vfi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
bf9201c7c01324a44ae86a673f4d1b92fd6f346d0be9d5a6390cc8be11d79d00a1cdee88c28ceb7fc5b99215198cf3ac368884381933e40babc85a21cbd300e3  guile-zlib-0.1.0.tar.gz
"
